<?php


namespace app\api\controller\v1;


use app\adminapi\controller\AuthController;
use app\services\notice\NoticeOtherService;
use think\facade\App;

class NoticeOther extends AuthController
{
    public function __construct(App $app,NoticeOtherService  $service)
    {
        parent::__construct($app);
        $this ->services = $service;
    }

    /*
     * '更新公告','使用帮助','消息通知' 目录
     */
    public function index(){
        $where = $this->request->postMore([
            ['website_id',$this  -> website],
            ['type',''],
            ['id',''],
        ]);
        return app()->make('json')->successful($this->services->gerInformation($where));
    }

    /*
     * '更新公告','使用帮助','消息通知' 内容
     */
    public function content(){
        $where = $this->request->postMore([
            ['id',''],
            ['user_id','']
        ]);
        return app()->make('json')->successful($this->services->getcontent($where));
    }
}